cmake_minimum_required(VERSION 3.10)

set(SQLITE_SOURCES
    sqlite3.c
    shell.c
)

if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
    if (MSVC)
        add_library(sqlite3 STATIC ${SQLITE_SOURCES})
    else()
		add_library(sqlite3 SHARED ${SQLITE_SOURCES})
    endif()
else()
	add_library(sqlite3 SHARED ${SQLITE_SOURCES})
endif()
target_compile_options(sqlite3 PRIVATE -fPIC)
